package com.qx.service;

import com.qx.mapper.ScAddressMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Objects;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qx.pojo.ScAddress;

@Service
public class ScAddressServiceImpl extends ServiceImpl<ScAddressMapper, ScAddress> implements ScAddressService{

    @Resource
    private ScAddressMapper scAddressMapper;

    @Override
    public ScAddress listDefault(Integer id) {
        ScAddress scAddress = scAddressMapper.selectDefault(id);
        if (Objects.nonNull(scAddress)){
            return scAddress;
        }
        return null;
    }
}
